package 异常.day1.demo3;

public class Test1 {
    public static void main(String[] args) {
        int []arr1={2,2,1,4,5};
        int []arr2={1,0,3};


        for(int i=0;i<arr1.length;i++){
            System.out.println(i);
            try {
                System.out.println("===="+arr1[i]/arr2[i]);
                //操作数据库
                //System.exit(0);
            } catch (NullPointerException e) {
                System.out.println(e.getMessage());
            }finally {
                System.out.println("xxxxxxxxxxxxxx我一定执行。。。。。");
            }
            System.out.println("............");
        }

    }
}
